<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例10</title>
</head>
<body>
    <script>
        function foo(){

        }

        console.log(foo.name)

        const f = function (){}
        console.log(f.name)
    </script>
</body>
</html>